home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 7287 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: sn.no!not-for-mail
  2. From: ilan@sn.no (Ilan Sharoni)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: BitMap problem
  5. Date: 13 Apr 1996 02:03:22 +0200
  6. Organization: SN Internett
  7. Message-ID: <4kmr0a$fph@sinsen.sn.no>
  8. References: <jdjenpv6k9p.fsf@vesipyssy.cs.hut.fi>
  9. NNTP-Posting-Host: sinsen.sn.no
  10. X-Newsreader: THOR 2.0 (SOUP)
  11.  
  12. On 11-Apr-96 15:02:42, Osma Ahvenlampi (oahvenla@vesipyssy.cs.hut.fi) Wrote:
  13. >In article <4kfesg$sqe@sinsen.sn.no> ilan@sn.no (Ilan Sharoni) writes:
  14. >> I AllocBitMap(), link it to a RastPort, Text() a string to the
  15. >>bitmap (should dump it to the printer latter), FreeBitMap() it,
  16.  
  17. >What RastPort, and how did you initialize it?
  18.  
  19. "Independent" RastPort, and yes.
  20.  
  21. The problem was with the RectFill() I used to clear the bitmap
  22. before drawing the text. Though not documented, it probably needs extra
  23. allocations like the Area functions.
  24. I replaced it with SetRast(), and the fireworks is gone.
  25.  
  26. I hope the Text() call is safer. It is an
  27. almost-impossible-to-detect-bug, since the crash is very remote
  28. from the function call.                                  
  29.  
  30.  
  31.  
  32. ilan
  33.  
  34.  
  35.